From: Richard M. Stallman Date: Sat, 5 Aug 1995 20:19:40 +0000 (+0000) Subject: (main): Mention lock file name in error message. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~86292 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=d0776f5c896d161ad5fa5c115b4fb37cf98c7f27;p=emacs.git (main): Mention lock file name in error message. --- diff --git a/lib-src/movemail.c b/lib-src/movemail.c index 83a9fed2acc..fd33302b9e6 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c @@ -237,7 +237,11 @@ main (argc, argv) /* Give up if cannot do that. */ desc = open (tempname, O_WRONLY | O_CREAT | O_EXCL, 0666); if (desc < 0) - pfatal_with_name ("lock file--see source file lib-src/movemail.c"); + { + char *message = (char *) malloc (strlen (tempname) + 50); + sprintf (message, "%s--see source file lib-src/movemail.c"); + pfatal_with_name (message); + } close (desc); tem = link (tempname, lockname);